angular.module('myApp').component('blacklist', {
    templateUrl:  'view/blacklist.html',

    controller: function(BlacklistService) {
        var myList = this.lists = [];
        this.getBlacklist = function() {
           BlacklistService.getBlacklist(0,10).then(function(res){
           //myList=(res.data.lists);
           for(var i=0; i < res.data.lists.length; i++){
               myList.push(res.data.lists[i]);
           }
            console.log(myList);

        });
        }
    }
});